package cn.itcast.consumer;

import cn.itcast.consumer.config.RedisProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.SpringCloudApplication;

/**
 * @author 虎哥
 */
//@EnableHystrix // 开启线程隔离
//@SpringBootApplication

@EnableConfigurationProperties(RedisProperties.class)
@SpringCloudApplication
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class, args);
    }

    /*@Bean
    // 开启负载均衡功能
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }*/
}
